package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class UserController {
    @RequestMapping("v1/user/login")//请求注解
    @ResponseBody//响应注解,返回值返回客户端
    public String login(){

        return "恭喜恭喜，完成了登录功能";
    }
    @RequestMapping("v1/user/register")
    @ResponseBody
    public String register(){
        return "恭喜恭喜，完成了注册功能";
    }
}
